cd "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis"
use "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Cleaned and Merged Bovitz Data.dta", clear
set seed 662607015

///////////////////////////////////////////////////////////////////////////////
/*
Table of Contents - Table: Line Numbers
Table 2: 120-176
Table 3: 180-190
Table 4: 195-283
Table 5: 290:317
Table D2a: 325-422
Table D2b: 425-488
Table D3a: 490-526
Table D3b: 530-546
Table D4a: 550-650
Table D4b: 655-715
Table D5a: 720-759
Table D5b: 765-786
Table E2: 790-883
Table E3: 890-914
Table E4: 920-1018
Table E5: 1020-1059
Table B1: 1065-1074
*/

// Creating Indicators for t-test functionality

// Wave 1
gen t1_12=.
replace t1_12=0 if group_t1==1 
replace t1_12=1 if group_t1==2

gen t1_13=.
replace t1_13=0 if group_t1==1 
replace t1_13=1 if group_t1==3

gen t1_14=.
replace t1_14=0 if group_t1==1 
replace t1_14=1 if group_t1==4

// Inverting for use in ttests

gen t1_21=1-t1_12
gen t1_31=1-t1_13
gen t1_41=1-t1_14

// Wave 2

gen t2_12=.
replace t2_12=0 if condition==1
replace t2_12=1 if condition==2

gen t2_13=.
replace t2_13=0 if condition==1
replace t2_13=1 if condition==3

gen t2_14=.
replace t2_14=0 if condition==1
replace t2_14=1 if condition==4

gen t2_15=.
replace t2_15=0 if condition==1
replace t2_15=1 if condition==5

gen t2_16=.
replace t2_16=0 if condition==1
replace t2_16=1 if condition==6

gen t2_17=.
replace t2_17=0 if condition==1
replace t2_17=1 if condition==7

gen t2_18=.
replace t2_18=0 if condition==1
replace t2_18=1 if condition==8

// Inverting for ttests

gen t2_21=1-t2_12
gen t2_31=1-t2_13
gen t2_41=1-t2_14
gen t2_51=1-t2_15
gen t2_61=1-t2_16
gen t2_71=1-t2_17
gen t2_81=1-t2_18

//Testing for Normality

sfrancia saisupport_t1
sfrancia sairessupport_t1

sfrancia saisupport_t2
sfrancia sairessupport_t2
sfrancia balloonsupport

sfrancia saibeliefs_1_t1
sfrancia saibeliefs_2_t1
sfrancia saibeliefs_3_t1
sfrancia saibeliefs_4_t1
sfrancia saibeliefs_5_t1
sfrancia saibeliefs_6_t1
sfrancia saibeliefs_7_t1
sfrancia saibeliefs_8_t1

sfrancia saibeliefs_1_t2
sfrancia saibeliefs_2_t2
sfrancia saibeliefs_3_t2
sfrancia saibeliefs_4_t2
sfrancia saibeliefs_5_t2
sfrancia saibeliefs_6_t2
sfrancia saibeliefs_7_t2
sfrancia saibeliefs_8_t2

// All significant, t-tests may be problematic due to non-normality. 
// Relying on N>100, but retesting with linear regression and ordered logit

////////////////////////////////////////////////////////////////////////////////

//Beliefs Wave 1 (Table 2)

//Fast and Cost-Effective

sum saibeliefs_1_t1 if group_t1==1, detail
ttest saibeliefs_1_t1, by(t1_21) 
ttest saibeliefs_1_t1, by(t1_31) 
ttest saibeliefs_1_t1, by(t1_41) 

//Prevent Species Loss

sum saibeliefs_2_t1 if group_t1==1, detail
ttest saibeliefs_2_t1, by(t1_21) 
ttest saibeliefs_2_t1, by(t1_31) 
ttest saibeliefs_2_t1, by(t1_41) 

//Distract Society

sum saibeliefs_3_t1 if group_t1==1, detail
ttest saibeliefs_3_t1, by(t1_21) 
ttest saibeliefs_3_t1, by(t1_31) 
ttest saibeliefs_3_t1, by(t1_41) 

//Dangerous Side Effects

sum saibeliefs_4_t1 if group_t1==1, detail
ttest saibeliefs_4_t1, by(t1_21) 
ttest saibeliefs_4_t1, by(t1_31) 
ttest saibeliefs_4_t1, by(t1_41) 

//National Security Threat

sum saibeliefs_5_t1 if group_t1==1, detail
ttest saibeliefs_5_t1, by(t1_21) 
ttest saibeliefs_5_t1, by(t1_31) 
ttest saibeliefs_5_t1, by(t1_41) 

//Prevent Droughts

sum saibeliefs_6_t1 if group_t1==1, detail
ttest saibeliefs_6_t1, by(t1_21) 
ttest saibeliefs_6_t1, by(t1_31) 
ttest saibeliefs_6_t1, by(t1_41) 

//Help Most Vulnerable

sum saibeliefs_7_t1 if group_t1==1, detail
ttest saibeliefs_7_t1, by(t1_21) 
ttest saibeliefs_7_t1, by(t1_31) 
ttest saibeliefs_7_t1, by(t1_41) 

//False Solution

sum saibeliefs_8_t1 if group_t1==1, detail
ttest saibeliefs_8_t1, by(t1_21) 
ttest saibeliefs_8_t1, by(t1_31) 
ttest saibeliefs_8_t1, by(t1_41) 



// Table 3

sum saisupport_t1 if group_t1==1, detail
ttest saisupport_t1, by(t1_21) 
ttest saisupport_t1, by(t1_31) 
ttest saisupport_t1, by(t1_41) 

sum sairessupport_t1 if group_t1==1, detail
ttest sairessupport_t1, by(t1_21) 
ttest sairessupport_t1, by(t1_31) 
ttest sairessupport_t1, by(t1_41) 




//Beliefs Wave 2 (Table 4)

//Fast and Cost-Effective

sum saibeliefs_1_t2 if condition==1, detail
ttest saibeliefs_1_t2, by(t2_21) 
ttest saibeliefs_1_t2, by(t2_31) 
ttest saibeliefs_1_t2, by(t2_41) 
ttest saibeliefs_1_t2, by(t2_51) 
ttest saibeliefs_1_t2, by(t2_61) 
ttest saibeliefs_1_t2, by(t2_71) 
ttest saibeliefs_1_t2, by(t2_81) 

//Prevent Species Loss

sum saibeliefs_2_t2 if condition==1, detail
ttest saibeliefs_2_t2, by(t2_21) 
ttest saibeliefs_2_t2, by(t2_31) 
ttest saibeliefs_2_t2, by(t2_41) 
ttest saibeliefs_2_t2, by(t2_51) 
ttest saibeliefs_2_t2, by(t2_61) 
ttest saibeliefs_2_t2, by(t2_71) 
ttest saibeliefs_2_t2, by(t2_81) 

//Distract Society

sum saibeliefs_3_t2 if condition==1, detail
ttest saibeliefs_3_t2, by(t2_21) 
ttest saibeliefs_3_t2, by(t2_31) 
ttest saibeliefs_3_t2, by(t2_41) 
ttest saibeliefs_3_t2, by(t2_51) 
ttest saibeliefs_3_t2, by(t2_61) 
ttest saibeliefs_3_t2, by(t2_71) 
ttest saibeliefs_3_t2, by(t2_81) 

//Dangerous Side Effects

sum saibeliefs_4_t2 if condition==1, detail
ttest saibeliefs_4_t2, by(t2_21) 
ttest saibeliefs_4_t2, by(t2_31) 
ttest saibeliefs_4_t2, by(t2_41) 
ttest saibeliefs_4_t2, by(t2_51) 
ttest saibeliefs_4_t2, by(t2_61) 
ttest saibeliefs_4_t2, by(t2_71) 
ttest saibeliefs_4_t2, by(t2_81) 

//National Security Threat

sum saibeliefs_5_t2 if condition==1, detail
ttest saibeliefs_5_t2, by(t2_21) 
ttest saibeliefs_5_t2, by(t2_31) 
ttest saibeliefs_5_t2, by(t2_41) 
ttest saibeliefs_5_t2, by(t2_51) 
ttest saibeliefs_5_t2, by(t2_61) 
ttest saibeliefs_5_t2, by(t2_71) 
ttest saibeliefs_5_t2, by(t2_81) 

//Prevent Droughts

sum saibeliefs_6_t2 if condition==1, detail
ttest saibeliefs_6_t2, by(t2_21) 
ttest saibeliefs_6_t2, by(t2_31) 
ttest saibeliefs_6_t2, by(t2_41) 
ttest saibeliefs_6_t2, by(t2_51) 
ttest saibeliefs_6_t2, by(t2_61) 
ttest saibeliefs_6_t2, by(t2_71) 
ttest saibeliefs_6_t2, by(t2_81) 

//Help Most Vulnerable

sum saibeliefs_7_t2 if condition==1, detail
ttest saibeliefs_7_t2, by(t2_21) 
ttest saibeliefs_7_t2, by(t2_31) 
ttest saibeliefs_7_t2, by(t2_41) 
ttest saibeliefs_7_t2, by(t2_51) 
ttest saibeliefs_7_t2, by(t2_61) 
ttest saibeliefs_7_t2, by(t2_71) 
ttest saibeliefs_7_t2, by(t2_81) 

//False Solution

sum saibeliefs_8_t2 if condition==1, detail
ttest saibeliefs_8_t2, by(t2_21) 
ttest saibeliefs_8_t2, by(t2_31) 
ttest saibeliefs_8_t2, by(t2_41) 
ttest saibeliefs_8_t2, by(t2_51) 
ttest saibeliefs_8_t2, by(t2_61) 
ttest saibeliefs_8_t2, by(t2_71) 
ttest saibeliefs_8_t2, by(t2_81) 






// Table 5

sum saisupport_t2 if condition==1, detail
ttest saisupport_t2, by(t2_21) 
ttest saisupport_t2, by(t2_31) 
ttest saisupport_t2, by(t2_41) 
ttest saisupport_t2, by(t2_51) 
ttest saisupport_t2, by(t2_61) 
ttest saisupport_t2, by(t2_71) 
ttest saisupport_t2, by(t2_81) 

sum sairessupport_t2 if condition==1, detail
ttest sairessupport_t2, by(t2_21) 
ttest sairessupport_t2, by(t2_31) 
ttest sairessupport_t2, by(t2_41) 
ttest sairessupport_t2, by(t2_51) 
ttest sairessupport_t2, by(t2_61) 
ttest sairessupport_t2, by(t2_71) 
ttest sairessupport_t2, by(t2_81)

sum balloonsupport if condition==1, detail
ttest balloonsupport, by(t2_21) 
ttest balloonsupport, by(t2_31) 
ttest balloonsupport, by(t2_41) 
ttest balloonsupport, by(t2_51) 
ttest balloonsupport, by(t2_61) 
ttest balloonsupport, by(t2_71) 
ttest balloonsupport, by(t2_81)

///////////////////////////////////////////////////////////////////////////////



///////////////////////////////////////////////////////////////////////////////

// Regression Supplement for Table 2

use "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Cleaned and Merged Bovitz Data.dta", clear

reg saibeliefs_1_t1 i.group_t1
predict StudentUs_1, rstudent
predict CooksD_1, cooksd 
gen significant_1=0
replace significant_1=1 if StudentUs_1>3 & CooksD_1>(4/1986)
reg saibeliefs_1_t1 i.group_t1 if significant_1==0
hettest
reg saibeliefs_1_t1 i.group_t1 if significant_1==0, vce(hc3)
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression.doc", ///
	replace word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Fast and Cost Effective")


reg saibeliefs_2_t1 i.group_t1
predict StudentUs_2, rstudent
predict CooksD_2, cooksd 
gen significant_2=0
replace significant_2=1 if StudentUs_2>3 & CooksD_2>(4/1984)
reg saibeliefs_2_t1 i.group_t1 if significant_2==0
hettest
reg saibeliefs_2_t1 i.group_t1 if significant_2==0, vce(hc3)
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Prevent Species Loss")


reg saibeliefs_6_t1 i.group_t1
predict StudentUs_6, rstudent
predict CooksD_6, cooksd 
gen significant_6=0
replace significant_6=1 if StudentUs_6>3 & CooksD_6>(4/1985)
reg saibeliefs_6_t1 i.group_t1 if significant_6==0
hettest
reg saibeliefs_6_t1 i.group_t1 if significant_6==0, vce(hc3)
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Reduce Damaging Weather")


reg saibeliefs_7_t1 i.group_t1
predict StudentUs_7, rstudent
predict CooksD_7, cooksd 
gen significant_7=0
replace significant_7=1 if StudentUs_7>3 & CooksD_7>(4/1985)
reg saibeliefs_7_t1 i.group_t1 if significant_7==0
hettest
reg saibeliefs_7_t1 i.group_t1 if significant_7==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Help Most Vulnerable")


reg saibeliefs_3_t1 i.group_t1
predict StudentUs_3, rstudent
predict CooksD_3, cooksd 
gen significant_3=0
replace significant_3=1 if StudentUs_3>3 & CooksD_3>(4/1983)
reg saibeliefs_3_t1 i.group_t1 if significant_3==0
hettest
reg saibeliefs_3_t1 i.group_t1 if significant_3==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Distract Society's Attention")


reg saibeliefs_4_t1 i.group_t1
predict StudentUs_4, rstudent
predict CooksD_4, cooksd 
gen significant_4=0
replace significant_4=1 if StudentUs_4>3 & CooksD_3>(4/1988)
reg saibeliefs_4_t1 i.group_t1 if significant_4==0
hettest
reg saibeliefs_4_t1 i.group_t1 if significant_4==0, vce(hc3)
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Dangerous Side Effects")


reg saibeliefs_5_t1 i.group_t1
predict StudentUs_5, rstudent
predict CooksD_5, cooksd 
gen significant_5=0
replace significant_5=1 if StudentUs_5>3 & CooksD_5>(4/1986)
reg saibeliefs_5_t1 i.group_t1 if significant_5==0
hettest
reg saibeliefs_5_t1 i.group_t1 if significant_5==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("National Security Threat")


reg saibeliefs_8_t1 i.group_t1
predict StudentUs_8, rstudent
predict CooksD_8, cooksd 
gen significant_8=0
replace significant_8=1 if StudentUs_8>3 & CooksD_8>(4/1986)
reg saibeliefs_8_t1 i.group_t1 if significant_8==0
hettest
reg saibeliefs_8_t1 i.group_t1 if significant_8==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Oil Companies' False Solution")


// Ordered Logit Supplement for Table 2

/*	Varied violations of the parallel lines assumption, which is expected
	given that we expect the treatments to exert a differential effect on 
	outcomes; for purposes here, simply observing that results don't vary 
	in significance between ttests, OLS, and ologit, thus ignoring these 
	violations as we're not interpreting the results */

use "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Cleaned and Merged Bovitz Data.dta", clear

ologit saibeliefs_1_t1 i.group_t1
gologit2 saibeliefs_1_t1 i.group_t1, autofit(0.05)
ologit saibeliefs_1_t1 i.group_t1
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 oLogit.doc", ///
	replace word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Fast and Cost Effective")


ologit saibeliefs_2_t1 i.group_t1
gologit2 saibeliefs_2_t1 i.group_t1, autofit(0.05)
ologit saibeliefs_2_t1 i.group_t1
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Prevent Species Loss")


ologit saibeliefs_6_t1 i.group_t1
gologit2 saibeliefs_6_t1 i.group_t1, autofit(0.05)
ologit saibeliefs_6_t1 i.group_t1
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Reduce Damaging Weather")


ologit saibeliefs_7_t1 i.group_t1
gologit2 saibeliefs_7_t1 i.group_t1, autofit(0.05)
ologit saibeliefs_7_t1 i.group_t1
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Help Most Vulnerable")


ologit saibeliefs_3_t1 i.group_t1
gologit2 saibeliefs_3_t1 i.group_t1, autofit(0.05)
ologit saibeliefs_3_t1 i.group_t1
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Distract Society's Attention")


ologit saibeliefs_4_t1 i.group_t1
gologit2 saibeliefs_4_t1 i.group_t1, autofit(0.05)
ologit saibeliefs_4_t1 i.group_t1
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Dangerous Side Effects")


ologit saibeliefs_5_t1 i.group_t1
gologit2 saibeliefs_5_t1 i.group_t1, autofit(0.05)
ologit saibeliefs_5_t1 i.group_t1
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("National Security Threat")


ologit saibeliefs_8_t1 i.group_t1
gologit2 saibeliefs_8_t1 i.group_t1, autofit(0.05)
ologit saibeliefs_8_t1 i.group_t1
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Oil Companies' False Solution")

// Regression Supplement for Table 3

use "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Cleaned and Merged Bovitz Data.dta", clear

reg saisupport_t1 i.group_t1 
hettest

predict StudentUs_1, rstudent
predict CooksD_1, cooksd 

gen significant_1=0
replace significant_1=1 if StudentUs_1>3 & CooksD_1>(4/2005)

reg saisupport_t1 i.group_t1 if significant_1==0
hettest

reg saisupport_t1 i.group_t1 if significant_1==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 3 Regression.doc", ///
	replace word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("SAI Support")

	
	
reg sairessupport_t1 i.group_t1 
hettest

predict StudentUs_2, rstudent
predict CooksD_2, cooksd 

gen significant_2=0
replace significant_2=1 if StudentUs_2>3 & CooksD_2>(4/2005)

reg sairessupport_t1 i.group_t1 if significant_2==0
hettest

reg sairessupport_t1 i.group_t1 if significant_2==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 3 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("SAI Research Support")
	
	
	
// Ordered Logit Supplement for Table 3
// See above for note on parallel lines assumptions violations
	
use "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Cleaned and Merged Bovitz Data.dta", clear

ologit saisupport_t1 i.group_t1
gologit2 saisupport_t1 i.group_t1, autofit(0.05)
ologit saisupport_t1 i.group_t1
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 3 Ordered Logit.doc", ///
	replace word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("SAI Support")


ologit sairessupport_t1 i.group_t1
gologit2 sairessupport_t1 i.group_t1, autofit(0.05)
ologit sairessupport_t1 i.group_t1
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 3 Ordered Logit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("SAI Research Support")

	
	
// Regression Supplement for Table 4

use "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Cleaned and Merged Bovitz Data.dta", clear

reg saibeliefs_1_t2 i.condition 
hettest
predict StudentUs_1, rstudent
predict CooksD_1, cooksd 
gen significant_1=0
replace significant_1=1 if StudentUs_1>3 & CooksD_1>(4/1718)
reg saibeliefs_1_t2 i.condition if significant_1==0
hettest
reg saibeliefs_1_t2 i.condition if significant_1==0, vce(hc3)
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression.doc", ///
	replace word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Fast and Cost Effective")

reg saibeliefs_2_t2 i.condition 
hettest
predict StudentUs_2, rstudent
predict CooksD_2, cooksd 
gen significant_2=0
replace significant_2=1 if StudentUs_2>3 & CooksD_2>(4/1720)
reg saibeliefs_2_t2 i.condition if significant_2==0
hettest
reg saibeliefs_2_t2 i.condition if significant_2==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Prevent Species Loss")	


reg saibeliefs_6_t2 i.condition 
hettest
predict StudentUs_6, rstudent
predict CooksD_6, cooksd 
gen significant_6=0
replace significant_6=1 if StudentUs_6>3 & CooksD_6>(4/1717)
reg saibeliefs_6_t2 i.condition if significant_6==0
hettest
reg saibeliefs_6_t2 i.condition if significant_6==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Reduce Damaging Weather")

reg saibeliefs_7_t2 i.condition 
hettest
predict StudentUs_7, rstudent
predict CooksD_7, cooksd 
gen significant_7=0
replace significant_7=1 if StudentUs_7>3 & CooksD_7>(4/1719)
reg saibeliefs_7_t2 i.condition if significant_7==0
hettest
reg saibeliefs_7_t2 i.condition if significant_7==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Help Most Vulnerable")	
	
	
reg saibeliefs_3_t2 i.condition 
hettest
predict StudentUs_3, rstudent
predict CooksD_3, cooksd 
gen significant_3=0
replace significant_3=1 if StudentUs_3>3 & CooksD_3>(4/1719)
reg saibeliefs_3_t2 i.condition if significant_3==0
hettest
reg saibeliefs_3_t2 i.condition if significant_3==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Distract Society's Attention")	
	
reg saibeliefs_4_t2 i.condition 
hettest
predict StudentUs_4, rstudent
predict CooksD_4, cooksd 
gen significant_4=0
replace significant_4=1 if StudentUs_4>3 & CooksD_4>(4/1724)
reg saibeliefs_4_t2 i.condition if significant_4==0
hettest
reg saibeliefs_4_t2 i.condition if significant_4==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Dangerous Side Effects")		
	
reg saibeliefs_5_t2 i.condition 
hettest
predict StudentUs_5, rstudent
predict CooksD_5, cooksd 
gen significant_5=0
replace significant_5=1 if StudentUs_5>3 & CooksD_5>(4/1713)
reg saibeliefs_5_t2 i.condition if significant_5==0
hettest
reg saibeliefs_5_t2 i.condition if significant_5==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("National Security Threat")	
	
reg saibeliefs_8_t2 i.condition 
hettest
predict StudentUs_8, rstudent
predict CooksD_8, cooksd 
gen significant_8=0
replace significant_8=1 if StudentUs_8>3 & CooksD_8>(4/1718)
reg saibeliefs_8_t2 i.condition if significant_8==0
hettest
reg saibeliefs_8_t2 i.condition if significant_8==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("False Solution")	
	
	
	
	
// Ordered Logit Supplement for Table 4

use "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Cleaned and Merged Bovitz Data.dta", clear

ologit saibeliefs_1_t2 i.condition 
gologit2 saibeliefs_1_t2 i.condition, autofit(0.05) 
ologit saibeliefs_1_t2 i.condition 

outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 oLogit.doc", ///
	replace word stats(coef se pval) paren(se) bracket(pval)) dec(3) ctitle("Fast and Cost Effective")

ologit saibeliefs_2_t2 i.condition 
gologit2 saibeliefs_2_t2 i.condition, autofit(0.05) 
ologit saibeliefs_2_t2 i.condition 

outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval) dec(3) ctitle("Prevent Species Loss")	


ologit saibeliefs_6_t2 i.condition 
gologit2 saibeliefs_6_t2 i.condition, autofit(0.05) 
ologit saibeliefs_6_t2 i.condition 

outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval) dec(3) ctitle("Reduce Damaging Weather")

ologit saibeliefs_7_t2 i.condition 
gologit2 saibeliefs_7_t2 i.condition, autofit(0.05) 
ologit saibeliefs_7_t2 i.condition 

outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval) dec(3) ctitle("Help Most Vulnerable")	
	
	
ologit saibeliefs_3_t2 i.condition 
gologit2 saibeliefs_3_t2 i.condition, autofit(0.05) 
ologit saibeliefs_3_t2 i.condition 

outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval) dec(3) ctitle("Distract Society's Attention")	
	
ologit saibeliefs_4_t2 i.condition 
gologit2 saibeliefs_4_t2 i.condition, autofit(0.05)
ologit saibeliefs_4_t2 i.condition 

outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval) dec(3) ctitle("Dangerous Side Effects")		
	
ologit saibeliefs_5_t2 i.condition 
gologit2 saibeliefs_5_t2 i.condition, autofit(0.05) 
ologit saibeliefs_5_t2 i.condition 

outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval) dec(3) ctitle("National Security Threat")	
	
ologit saibeliefs_8_t2 i.condition 
gologit2 saibeliefs_8_t2 i.condition, autofit(0.05)
ologit saibeliefs_8_t2 i.condition 

outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval) dec(3) ctitle("False Solution")	
	
	

	
// Regression Supplement for Table 5

use "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Cleaned and Merged Bovitz Data.dta", clear

reg saisupport_t2 i.condition 
hettest
predict StudentUs_1, rstudent
predict CooksD_1, cooksd 
gen significant_1=0
replace significant_1=1 if StudentUs_1>3 & CooksD_1>(4/1727)
reg saisupport_t2 i.condition if significant_1==0
hettest
reg saisupport_t2 i.condition if significant_1==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 5 Regression.doc", ///
	replace word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("SAI Support")
	
reg sairessupport_t2 i.condition 
hettest
predict StudentUs_2, rstudent
predict CooksD_2, cooksd 
gen significant_2=0
replace significant_2=1 if StudentUs_2>3 & CooksD_2>(4/1727)
reg sairessupport_t2 i.condition if significant_2==0
hettest
reg sairessupport_t2 i.condition if significant_2==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 5 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("SAI Research Support")
	
	
reg balloonsupport i.condition 
hettest
predict StudentUs_3, rstudent
predict CooksD_3, cooksd 
gen significant_3=0
replace significant_3=1 if StudentUs_3>3 & CooksD_3>(4/1727)
reg balloonsupport i.condition if significant_3==0
hettest
reg balloonsupport i.condition if significant_3==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 5 Regression.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Balloon Study Support")
	
	
	
	
	
// Ordered Logit Supplement for Table 5
	
use "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Cleaned and Merged Bovitz Data.dta", clear

ologit saisupport_t2 i.condition 
gologit2 saisupport_t2 i.condition, autofit(0.05)
ologit saisupport_t2 i.condition 
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 5 oLogit.doc", ///
	replace word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("SAI Support")
	
ologit sairessupport_t2 i.condition 
gologit2 sairessupport_t2 i.condition, autofit(0.05)
ologit sairessupport_t2 i.condition 
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 5 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("SAI Research Support")
	
	
ologit balloonsupport  i.condition 
gologit2 balloonsupport  i.condition, autofit(0.05)
ologit balloonsupport  i.condition 
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 5 oLogit.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Balloon Study Support")
	
////////////////////////////////////////////////////////////////////////////////

// Table 2

use "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Cleaned and Merged Bovitz Data.dta", clear

reg saibeliefs_1_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief
predict StudentUs_1, rstudent
predict CooksD_1, cooksd 
gen significant_1=0
replace significant_1=1 if StudentUs_1>3 & CooksD_1>(4/1855)
reg saibeliefs_1_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_1==0
hettest
reg saibeliefs_1_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_1==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression with Demos.doc", ///
	replace word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Fast and Cost Effective")

reg saibeliefs_2_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief
predict StudentUs_2, rstudent
predict CooksD_2, cooksd 
gen significant_2=0
replace significant_2=1 if StudentUs_2>3 & CooksD_2>(4/1855)
reg saibeliefs_2_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_1==0
hettest
reg saibeliefs_2_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_1==0, vce(hc3)
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Prevent Species Loss")

reg saibeliefs_6_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief
predict StudentUs_6, rstudent
predict CooksD_6, cooksd 
gen significant_6=0
replace significant_6=1 if StudentUs_6>3 & CooksD_6>(4/1854)
reg saibeliefs_6_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_6==0
hettest
reg saibeliefs_6_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_6==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Reduce Damaging Weather")

reg saibeliefs_7_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief
predict StudentUs_7, rstudent
predict CooksD_7, cooksd 
gen significant_7=0
replace significant_7=1 if StudentUs_7>3 & CooksD_7>(4/1857)
reg saibeliefs_7_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_7==0
hettest
reg saibeliefs_7_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_7==0, vce(hc3)
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Help Most Vulnerable")


reg saibeliefs_3_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief
predict StudentUs_3, rstudent
predict CooksD_3, cooksd 
gen significant_3=0
replace significant_3=1 if StudentUs_3>3 & CooksD_3>(4/1854)
reg saibeliefs_3_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_3==0
hettest
reg saibeliefs_3_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_3==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Distract Society's Attention")


reg saibeliefs_4_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief
predict StudentUs_4, rstudent
predict CooksD_4, cooksd 
gen significant_4=0
replace significant_4=1 if StudentUs_4>3 & CooksD_3>(4/1857)
reg saibeliefs_4_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_4==0
hettest
reg saibeliefs_4_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_4==0, vce(hc3)
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Dangerous Side Effects")
	
reg saibeliefs_5_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief
predict StudentUs_5, rstudent
predict CooksD_5, cooksd 
gen significant_5=0
replace significant_5=1 if StudentUs_5>3 & CooksD_5>(4/1857)
reg saibeliefs_5_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief  if significant_5==0
hettest
reg saibeliefs_5_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief  if significant_5==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("National Security Threat")


reg saibeliefs_8_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief
predict StudentUs_8, rstudent
predict CooksD_8, cooksd 
gen significant_8=0
replace significant_8=1 if StudentUs_8>3 & CooksD_8>(4/1857)
reg saibeliefs_8_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_8==0
hettest
reg saibeliefs_8_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_8==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 2 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Oil Companies' False Solution")


	
	
////////////////////////////////////////////////////////////////////////////////

// Table 3

use "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Cleaned and Merged Bovitz Data.dta", clear

reg saisupport_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief
predict StudentUs_1, rstudent
predict CooksD_1, cooksd 
gen significant_1=0
replace significant_1=1 if StudentUs_1>3 & CooksD_1>(4/1865)
reg saisupport_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_1==0
hettest
reg saisupport_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_1==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 3 Regression with Demos.doc", ///
	replace word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("SAI Support")

reg sairessupport_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief
predict StudentUs_2, rstudent
predict CooksD_2, cooksd 
gen significant_2=0
replace significant_2=1 if StudentUs_2>3 & CooksD_2>(4/1865)
reg sairessupport_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_1==0
hettest
reg sairessupport_t1 i.group_t1 ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_1==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 3 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("SAI Research Support")

	
	
	
	
// Table 4

use "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Cleaned and Merged Bovitz Data.dta", clear

reg saibeliefs_1_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief
hettest
predict StudentUs_1, rstudent
predict CooksD_1, cooksd 
gen significant_1=0
replace significant_1=1 if StudentUs_1>3 & CooksD_1>(4/1605)
reg saibeliefs_1_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_1==0
hettest
reg saibeliefs_1_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_1==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression with Demos.doc", ///
	replace word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Fast and Cost Effective")

reg saibeliefs_2_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief 
hettest
predict StudentUs_2, rstudent
predict CooksD_2, cooksd 
gen significant_2=0
replace significant_2=1 if StudentUs_2>3 & CooksD_2>(4/1607)
reg saibeliefs_2_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_2==0
hettest
reg saibeliefs_2_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_2==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Prevent Species Loss")	

reg saibeliefs_6_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief 
hettest
predict StudentUs_6, rstudent
predict CooksD_6, cooksd 
gen significant_6=0
replace significant_6=1 if StudentUs_6>3 & CooksD_6>(4/1604)
reg saibeliefs_6_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_6==0
hettest
reg saibeliefs_6_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_6==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Reduce Damaging Weather")

reg saibeliefs_7_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief 
hettest
predict StudentUs_7, rstudent
predict CooksD_7, cooksd 
gen significant_7=0
replace significant_7=1 if StudentUs_7>3 & CooksD_7>(4/1606)
reg saibeliefs_7_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_7==0
hettest
reg saibeliefs_7_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_7==0, vce(hc3)
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Help Most Vulnerable")	
	
reg saibeliefs_3_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief 
hettest
predict StudentUs_3, rstudent
predict CooksD_3, cooksd 
gen significant_3=0
replace significant_3=1 if StudentUs_3>3 & CooksD_3>(4/1605)
reg saibeliefs_3_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_3==0
hettest
reg saibeliefs_3_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_3==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Distract Society's Attention")	
	
reg saibeliefs_4_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief 
hettest
predict StudentUs_4, rstudent
predict CooksD_4, cooksd 
gen significant_4=0
replace significant_4=1 if StudentUs_4>3 & CooksD_4>(4/1610)
reg saibeliefs_4_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_4==0
hettest
reg saibeliefs_4_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_4==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Dangerous Side Effects")		
	
reg saibeliefs_5_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief 
hettest
predict StudentUs_5, rstudent
predict CooksD_5, cooksd 
gen significant_5=0
replace significant_5=1 if StudentUs_5>3 & CooksD_5>(4/1602)
reg saibeliefs_5_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_5==0
hettest
reg saibeliefs_5_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_5==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("National Security Threat")	
	
reg saibeliefs_8_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief 
hettest
predict StudentUs_8, rstudent
predict CooksD_8, cooksd 
gen significant_8=0
replace significant_8=1 if StudentUs_8>3 & CooksD_8>(4/1604)
reg saibeliefs_8_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_8==0
hettest
reg saibeliefs_8_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_8==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 4 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("False Solution")	
		
// Table 5

use "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Cleaned and Merged Bovitz Data.dta", clear

reg saisupport_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief 
hettest
predict StudentUs_1, rstudent
predict CooksD_1, cooksd 
gen significant_1=0
replace significant_1=1 if StudentUs_1>3 & CooksD_1>(4/1613)
reg saisupport_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_1==0
hettest
reg saisupport_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_1==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 5 Regression with Demos.doc", ///
	replace word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("SAI Support")
	
reg sairessupport_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief 
hettest
predict StudentUs_2, rstudent
predict CooksD_2, cooksd 
gen significant_2=0
replace significant_2=1 if StudentUs_2>3 & CooksD_2>(4/1613)
reg sairessupport_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_2==0
hettest
reg sairessupport_t2 i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_2==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 5 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("SAI Research Support")
	
	
reg balloonsupport i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief 
hettest
predict StudentUs_3, rstudent
predict CooksD_3, cooksd 
gen significant_3=0
replace significant_3=1 if StudentUs_3>3 & CooksD_3>(4/1613)
reg balloonsupport i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_3==0
hettest
reg balloonsupport i.condition ideology pid_7 scitrust evalneed consp female age income education min CCbelief if significant_3==0
outreg2 using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Table 5 Regression with Demos.doc", ///
	append word stats(coef se pval) paren(se) bracket(pval)dec(3) ctitle("Balloon Study Support")

	
	
////////////////////////////////////////////////////////////////////////////////

// Descriptive Statistics Table

eststo clear
estpost summarize saisupport_t1 sairessupport_t1 saibeliefs_1_t1 saibeliefs_2_t1 ///
	saibeliefs_3_t1 saibeliefs_4_t1 saibeliefs_5_t1 saibeliefs_6_t1 saibeliefs_7_t1 ///
	saibeliefs_8_t1 balloonsupport sairessupport_t2 saisupport_t2 saibeliefs_1_t2 ///
	saibeliefs_2_t2 saibeliefs_3_t2 saibeliefs_4_t2 saibeliefs_5_t2 saibeliefs_6_t2 ///
	saibeliefs_7_t2 saibeliefs_8_t2 ideology pid_7 scitrust evalneed consp female ///
	age income education CCbelief min, detail
esttab using "C:\Users\evanl\OneDrive\Desktop\Projects\SAI Project\SAI Analysis\Analysis\Appendix\Summary Statistics.rtf", replace cells("mean p50 sd min max count(fmt(a2))") label title("Table 1: Descriptive Statistics") nomtitle nonumber noobs 
